#pragma once

#include "TeleporterInfo.h"

class TeleporterInfoMgr : public ManualSingleton<TeleporterInfoMgr>
{
	friend class  ManualSingleton < TeleporterInfoMgr > ;
	typedef std::unordered_map<uint32_t, TeleporterInfo>	mapTeleporterInfo;
	typedef mapTeleporterInfo::iterator mapTeleIter;
public:
	TeleporterInfoMgr();
	~TeleporterInfoMgr();
public:
	bool Init();
	bool UnInit();
public:
	TeleporterInfo* GetTeleporterInfo(uint32_t teleporterId);
protected:
	mapTeleporterInfo m_mapTeleInfo;
};

#define g_MakeTeleporterInfoMgr() (TeleporterInfoMgr::Instance())
#define g_GetTeleporterInfoMgr()  (TeleporterInfoMgr::GetInstance())
#define g_DelTeleporterInfoMgr()  (TeleporterInfoMgr::Destroy())

